export default {
    routes: [{
        path: '/',
        component: '../layouts/BasicLayout',
        routes: [{
            path: '/',
            redirect: '/ts-test'
        }, {
            path: '/ts-test',
            component: './ts-test/index',
            routes:[{
                path: '/ts-test',
                redirect: '/ts-test/abc'
            },{
                path: '/ts-test/abc',
                component: './ts-test/myForm'
            }]
        }, {
            component: './404.js'
        }]
    }],
    plugins: [
        [
            'umi-plugin-react',
            {
                antd: true,
                dva: {
                    immer: true,
                    hmr: false,
                },
            },
        ]
    ],
    proxy: [
        {
            context: ["/socket/"],
            target:"http://192.168.0.62:5022",
            ws: true,
            pathRewrite: { "^/socket" : "/" }
        }
    ]
}